import { PLATFORM_Map } from "@/constant/index";
import projectManagementes from "@/assets/images/leftminsvg/projectManagementes.svg?component";
export default {
	path: '/projectManagementes',
	redirect: '/manage/projectManagementes/projectManagementes',
	meta: {
		title: '项目管理',
		showLink: true,
		rank: 1,
		icon: projectManagementes,
		platform: [PLATFORM_Map.manage],
	},
	children: [
		{
			name: 'projectManagementes',
			path: '/manage/projectManagementes/projectManagementes',
			component: () => import('@/views/manage/projectManagementes/projectManagementes/index.vue'),
			meta: {
				title: '项目管理',
				showParent: true,
		        roles:['system.project.list']
			}
		},
		{
			name: 'device-management',
			path: '/manage/projectManagementes/device-management',
			component: () => import('@/views/manage/projectManagementes/device-management/index.vue'),
			meta: {
				title: '设备管理',
				showParent: true,
				roles:['system.project-device.select']
				
			}
		}, {
			name: 'projectrole',
			path: '/manage/projectManagementes/projectrole',
			component: () => import('@/views/manage/projectManagementes/projectrole/index.vue'),
			meta: {
				title: '项目角色',
				showParent: true,
				roles:['system.project-role.find']
			},
		},
		{
			name: 'user-authorizations',
			path: '/manage/projectManagementes/user-authorization',
			component: () => import('@/views/manage/projectManagementes/user-authorization/index.vue'),
			meta: {
				title: '用户授权',
				showParent: true,
				roles:['system.project-user.find']
			}
		},
		{
			name: 'alarm-logs',
			path: '/manage/projectManagementes/alarm-log',
			component: () => import('@/views/manage/projectManagementes/alarm-log/index.vue'),
			meta: {
				title: '告警记录',
				showParent: true,
				roles:['system.alarm.alarmlist']
			}
		}
	]
} satisfies RouteConfigsTable;
